package com.sishu.controller;

import com.sishu.service.DifficultyService;
import com.sishu.utils.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Slf4j
@RequestMapping("/difficulty/")
@CrossOrigin(origins = "*")
public class DifficultyController {


    @Resource
    private DifficultyService difficultyService;

    @GetMapping("seedifficulty")
    public Result seedifficulty() {
        return difficultyService.seedifficulty();
    }


}
